package com.ahm;

import com.netflix.loadbalancer.RandomRule;
import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author anhaimeng
 * @title: ServiceConsumerApplication
 * @projectName feign-demo
 * @description: TODO
 * @date 2021/10/1917:59
 */
/*功能描述
 * @author ahm
 */
@SpringBootApplication
@EnableFeignClients
public class ServiceConsumerApplication {
//  全局
    @Bean
    public Logger.Level getLog() {
        return Logger.Level.FULL;
    }

    //    @Bean
//    public RandomRule randomRule() {
//        return new RandomRule();
//    }
    public static void main(String[] args) {
        SpringApplication.run(ServiceConsumerApplication.class, args);
    }
}

